package com.shuoren.roomtemperaturecloud.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: chenkai
 * @Date: 2018/12/26 11:45
 */

@Document
public class SystemUser implements Serializable {
    @Id
    private String id;
    private String username;
    private String password;
    private String realname;
    private String mobilephone;
    private String department;
    private String respectiveregion;
    private String createname;
    private Long createtime;
    private String updatename;
    private Long updatetime;
    private String role;
    private String company;
    private String description;
    private String avatarurl;
    private int status;

    @Override
    public String toString() {
        return "SystemUser{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", mobilephone='" + mobilephone + '\'' +
                ", department='" + department + '\'' +
                ", respectiveregion='" + respectiveregion + '\'' +
                ", createname='" + createname + '\'' +
                ", createtime=" + createtime +
                ", updatename='" + updatename + '\'' +
                ", updatetime=" + updatetime +
                ", role='" + role + '\'' +
                ", company='" + company + '\'' +
                ", description='" + description + '\'' +
                ", avatarurl='" + avatarurl + '\'' +
                ", status=" + status +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getRespectiveregion() {
        return respectiveregion;
    }

    public void setRespectiveregion(String respectiveregion) {
        this.respectiveregion = respectiveregion;
    }

    public String getCreatename() {
        return createname;
    }

    public void setCreatename(String createname) {
        this.createname = createname;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public String getUpdatename() {
        return updatename;
    }

    public void setUpdatename(String updatename) {
        this.updatename = updatename;
    }

    public Long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Long updatetime) {
        this.updatetime = updatetime;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
